<?php

	extract ( $_POST );

	include 'wp-includes/php/DBManager.class.php';

	$db = new DBManager ( 'localhost', 'root', '', 'iumus' );
	$query = "INSERT INTO messaggi ( mittente, destinatario, oggetto, messaggio ) VALUES ( '".$send."', 'Admin', '".$object."', '".trim ( $con )."' )";
	$result = $db->executeQuery ( $query );
	
	echo '<script type="text/javascript">alert ("Message successfully sent to Admin!"); location.href = "messages.php"</script>';
	
?>